import request from '@/utils/request'
import store from '@/store'
export const sysProfile = () => {
  return request({
    url: '/sys/profile',
    method: 'POST',
    headers: {
      Authorization: `Bearer ${store.state.user2.token}`
    }
  })
}

//  获取员工基本信息
export const sysUser = (id) => {
  return request({
    url: '/sys/user/' + id,
    headers: {
      Authorization: `Bearer ${store.state.user2.token}`
    }
  })
}
